fix(workflows): add id-token permission for validate-request workflow#76
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Pull request overview
This PR adds the id-token: write permission to the bot-validate-request.yml workflow, which is required for OIDC authentication when using the Claude Code action (anthropics/claude-code-action@v1). This aligns the workflow with the same pattern used in util-claude.yml, which also uses the Claude Code action and has the same permission.
Key changes:
- Add missing
id-token: writepermission to enable OIDC authentication for Claude Code action
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
| permissions: | ||
| contents: read | ||
| issues: write | ||
| id-token: write |
There was a problem hiding this comment.
The same id-token: write permission should also be added to .github/workflows/gen-library-impl.yml which uses the same anthropics/claude-code-action@v1 action (line 124) but is missing this permission. The util-claude.yml workflow already has this permission set correctly.
Summary
id-token: writepermission tobot-validate-request.ymlTest